 <script language="javascript">
	function goback(titleid){
		document.forms[0].action='<?=site_url("job_management/goto_view_location_titleid")?>/'+ titleid;
		document.forms[0].submit();
	}
	function saveaddnew(titleid){
		document.forms[0].action='<?=site_url("job_management/save_addnew_titleloc")?>/'+ titleid;
		document.forms[0].submit();
	}
</script>

	<h3 class="capture">Job Management</h3>
    <div id="wrap">
    
    <div id="tdd_selected">
    	<div class="dd_selected">Add New Location</div>
        <div class="dd_view">
        <form action="" method="post">
   			<table width="420" border="0" align="center" cellpadding="0" cellspacing="0" id="addUser">
              <tr>
                <td width="100">&nbsp;</td>
                <td width="233">&nbsp;</td>
                <td width="87">&nbsp;</td>
              </tr>
               <tr>
                <td>Title:</td>
                <td><div class="bordrTextbox"><input type="text" id="txttitle" name="txttitle" value="<?=htmlspecialchars($titledata['title_desc']);?>" readonly="readonly" /></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Location:</td>
                <td><div class="bordrTextbox">
                      <select id="cbolocation" name="cbolocation">
                      <?php foreach($all_location->result() as $location): ?>
                      <option value="<?=$location->loc_id;?>" ><?=$location->loc_desc;?></option>
                      <?php endforeach; ?>
                      </select>
                	</div>
                </td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>
                <font color="#FF0000"><?php echo $error_message;?></font><br><br>
                <?php $titleid=$titledata['title_id'];?>
                <input type="button" name="btnback" value="Back" class="bottom" onclick="goback('<?=$titleid;?>')" />
           		<input type="button" name="btnsave" value="Save" class="bottom" onclick="saveaddnew('<?=$titleid;?>')" />
            	
                </td>
                <td>&nbsp;</td>
              </tr>
            </table>
        	
        </form>
		</div>
        
    </div> 

</div>

